/** * 获取当前时间，格式：YYYY-MM-DD HH:mm:ss */export function getCurrentTime() {    const now = new Date();    const year = now.getFullYear();    const month = now.getMonth() + 1; // 月份从0开始，所以需要加1    const day = now.getDate();    const hours = now.getHours();    const minutes = now.getMinutes();    const seconds = now.getSeconds();    return `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')} ${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;}/** * 将秒数转换为时分秒格式 * <pre> * 10 -> 00:10 * 100 -> 01:40 * </pre> * @param seconds 秒数 */export function convertSecondsToTime(seconds: number) {    const min = Math.floor(seconds / 60);    const sec = Math.floor(seconds % 60);    return `${min.toString().padStart(2, '0')}:${sec.toString().padStart(2, '0')}`;}